# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=dumpsmbshare
pkgver=23.1e5ceb1
pkgrel=1
pkgdesc='A script to dump files and folders remotely from a Windows SMB share.'
groups=('blackarch' 'blackarch-misc')
arch=('any')
url='https://github.com/p0dalirius/DumpSMBShare'
license=('custom:unknown')
depends=('python' 'impacket')
makedepends=('git')
source=("$pkgname::git+https://github.com/p0dalirius/DumpSMBShare.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 DumpSMBShare.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

